package cn.cycleif.util;

/**
 * @Date: 24/10/30-20:14
 * @Desc:
 */
public class GuestIdUtil {

  public static final ThreadLocal<String> GUEST_ID_HOLDER = new ThreadLocal<>();

  public static void setGuestId(String guestId) {
    GUEST_ID_HOLDER.set(guestId);
  }

  public static String getGuestId() {
    return GUEST_ID_HOLDER.get();
  }

  public static void clear() {
    GUEST_ID_HOLDER.remove();
  }
}
